<?php $this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'menu-left'));?>
<?php $this->widget('frontend.portlets.LastestNews.LastestNewsWidget', array('data'=>$newsViews, 'title'=>'LIST NEWS', 'readmore'=>false, 'view'=>'raw'));?>
<?php $this->endWidget();?>
<?php
Yii::app()->controller->pageTitle=$catName;
Yii::app()->controller->breadcrumbs=array(
		$catName,
);
?>
<div class="detail-page">
<img style="width: 748px; border-radius: 5px 5px 0 0;" src="<?php echo Yii::app()->theme->baseUrl;?>/images/news-events.jpg" />
<div class="text">
<p class="content-title"><?php echo $catName;?></p>
<div class="items-list">
	<?php if(count($data)>0):?>
	<table>
	<?php foreach ($data as $key => $item):
		$url = Yii::app()->controller->createUrlArticle($item['id']);
	?>
		<tr class="lib-item">
			<td valign="top"><a href="<?php echo $url;?>"><img class="thumb" src="<?php echo CommonHelper::getImageThumbNews($item['images']);?>" /></a></td>
			<td valign="top">
			<a class="title" href="<?php echo $url;?>"><?php echo $item['title'];?></a>
			<div >
				<br />
				<?php echo $item['introtext'];?>
			</div>
			</td>
		</tr>
	<?php endforeach;?>
	</table>
	<div class="paging">
		 <?php 
		$this->widget('frontend.widgets.Pagination',
					array(
						'pages' => $page,
						'maxButtonCount'=>$itemOnPaging,
						));
		?>
	</div>
	<?php endif;?>
</div>
</div>
</div>